#include <iostream>
using namespace std;
using ll=long long;
ll get_gcd(ll a,ll b){
	
	return b==0?a:get_gcd(b,a%b);
}
int main() {

	ll a,b;
	cin>>a>>b;
	cout<<(a*b)/get_gcd(a,b);
	
	return 0;
}
